import getNowFormatDate from '@/utils/getFormatDate.js'
const date = getNowFormatDate()

const filterOption = {
    items: [
      {
        label: '用户ID',
        type: 'input',
        data: undefined,
        placeholder: '请输入用户ID',
        value: undefined
      },
      {
        label: '手机号码',
        type: 'input',
        data: undefined,
        placeholder: '请输入手机号码',
        value: undefined
      },
      {
        label: '会员姓名',
        type: 'input',
        data: undefined,
        placeholder: '请输入会员姓名',
        value: undefined
      },
      {
        label: '邮箱',
        type: 'input',
        data: undefined,
        placeholder: '请输入邮箱',
        value: undefined
      },
      // {
      //   label: '会员等级',
      //   type: 'dropdown',
      //   data: [
          
      //   ],
      //   placeholder: '请选择会员等级',
      //   value: undefined
      // },
      // {
      //   label: '积分值',
      //   type: 'inputDouble',
      //   data: undefined,
      //   placeholder: '请输入会员值',
      //   value: undefined
      // },  
    ],
    btnGroup: [
      {
        label: '查询',
        type: 'search'
      },
      {
        label: '清空',
        type: 'clear'
      }
    // {
    //   label: '导出',
    //   type: 'export'
    // }
    ],
    close: false
  }
// 按钮
const searchFromData = {
  deliveryNo: undefined,
  deliveryTime: undefined,
  origin: undefined
}
// 积分规则
const scoreRules = {
  category: 1,
  effectiveDate: date,
  left: '',
  right: ''
}
// 积分兑换金额
const scoreExchange = {
  category: 2,
  effectiveDate: date,
  left: '',
  right: ''
}
// 激活时间
const activateTime = {
  activeInterval: '',
  activeType: 1,
  category: 3,
  effectiveDate: date,
}
// 积分有效期
const expireDate = {
  effectiveInterval:'',
  effectiveType: 1,
  category: 4,
  effectiveDate: date,
}

const scoreTableH = [
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'id', // <String>  对应属性名
    label: '用户ID', // <String>   表头标签
    width: '',
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'nickname', // <String>  对应属性名
    label: '会员昵称', // <String>   表头标签
    width: '',
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'phone', // <String>  对应属性名
    label: '手机号码', // <String>   表头标签
    width: '',
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'name', // <String>  对应属性名
    label: '会员名字', // <String>   表头标签
    width: 80,
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'email', // <String>  对应属性名
    label: '邮箱', // <String>   表头标签
    width: '',
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'level', // <String>  对应属性名
    label: '会员等级', // <String>   表头标签
    width: '',
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'score', // <String>  对应属性名
    label: '可用积分', // <String>   表头标签
    width: '',
    fixed: true
  },
  
]
export default {
    filterOption,
    searchFromData,
    scoreTableH,
    scoreRules,
    scoreExchange,
    activateTime,
    expireDate
}
